<template>
  <div>
    <div>
      <h4>排版问题可加一label占4份空行解决</h4>
      <el-row type="flex" justify="space-between">
        <el-col :span="5">
          <span>寂静</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.useless2_radio1">
              <el-radio :label="1">是</el-radio>
              <el-radio :label="2">否</el-radio>
            </el-radio-group>
          </div>
        </el-col>
        <el-col :span="5">
          <span>肘</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.useless2_radio2">
              <el-radio :label="1">是</el-radio>
              <el-radio :label="2">否</el-radio>
            </el-radio-group>
          </div>
        </el-col>
        <el-col :span="5">
          <span>女儿</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.useless2_radio3">
              <el-radio :label="1">是</el-radio>
              <el-radio :label="2">否</el-radio>
            </el-radio-group>
          </div>
        </el-col>
        <el-col :span="5">
          <span>粉末</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.useless2_radio4">
              <el-radio :label="1">是</el-radio>
              <el-radio :label="2">否</el-radio>
            </el-radio-group>
          </div>
        </el-col>
        <el-col>
          <div>
            <span>错误数 </span>
            <el-input v-model="pgForm.useless2_input" placeholder="" readonly style="width: 50%;"></el-input>
          </div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "useless2",
  title: "是否单选统计个数",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data () {
    return {
      pgForm: {
        useless2_radio1: '',
        useless2_radio2: '',
        useless2_radio3: '',
        useless2_radio4: '',

        useless2_input: '',
      }
    };
  }
}
</script>

<style scoped>
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}
.el-col {
  margin:10px 0;
}
.el-radio-group{
  padding: 10px 20px;
}
.el-radio{
  display: block;
  margin-bottom: 15px;
}

</style>
